import {Navigate} from "react-router-dom"
import Home from "../views/Home"
import Order from "../views/Order"
import OrderFrom from  "../views/OrderForm"
import Cart from "../views/Cart"
import Login from "../views/Login"
const router = [
  {
    path:"/",
    element:<Navigate to="/home"></Navigate>
  },
  {
    path:"/home",
    element:<Home></Home>
  },
  {
    path:"/message",
    element:<OrderFrom></OrderFrom>
  },
  {
    path:"/me",
    element:<Order></Order>
  },
  {
    path:"/todo",
    element:<Cart></Cart>
  },
  {
    path:"/login",
    element:<Login></Login>
  },
]
export default router